home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / db / esm-3.1 / esm-3 / usr / local / sm / src / serverlib / include / asmmacro.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-05  |  1.8 KB  |  62 lines

  1. /*
  2.  *   $RCSfile: asmmacro.h,v $  
  3.  *   $Revision: 1.1.1.1 $  
  4.  *   $Date: 1996/05/04 21:55:42 $      
  5.  */ 
  6. #ifndef __ASMMACRO_H__
  7. #define __ASMMACRO_H__
  8. /**********************************************************************
  9. * EXODUS Database Toolkit Software
  10. * Copyright (c) 1991 Computer Sciences Department, University of
  11. *                    Wisconsin -- Madison
  12. * All Rights Reserved.
  13. *
  14. * Permission to use, copy, modify and distribute this software and its
  15. * documentation is hereby granted, provided that both the copyright
  16. * notice and this permission notice appear in all copies of the
  17. * software, derivative works or modified versions, and any portions
  18. * thereof, and that both notices appear in supporting documentation.
  19. *
  20. * THE COMPUTER SCIENCES DEPARTMENT OF THE UNIVERSITY OF WISCONSIN --
  21. * MADISON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION.  
  22. * THE DEPARTMENT DISCLAIMS ANY LIABILITY OF ANY KIND FOR ANY DAMAGES
  23. * WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
  24. *
  25. * The EXODUS Project Group requests users of this software to return 
  26. * any improvements or extensions that they make to:
  27. *
  28. *   EXODUS Project Group 
  29. *     c/o David J. DeWitt and Michael J. Carey
  30. *   Computer Sciences Department
  31. *   University of Wisconsin -- Madison
  32. *   Madison, WI 53706
  33. *
  34. *     or exodus@cs.wisc.edu
  35. *
  36. * In addition, the EXODUS Project Group requests that users grant the 
  37. * Computer Sciences Department rights to redistribute these changes.
  38. **********************************************************************/
  39.  
  40. /*
  41.  *    define the macros used in the assembler
  42.  */
  43. #define REGMASK(_mask)    .word _mask
  44.  
  45. #define NOREGS        0x0
  46. #define USERREGS    0xfc0
  47.  
  48.  
  49. /*
  50.  *    define offsets into the tcb
  51.  */
  52. #define T_STACK        0x4        
  53. #define LASTFRAME    -36
  54. #define LASTAP        20    
  55.  
  56.  
  57. /*
  58.  *    define macro for getting to arguments
  59.  */
  60. #define ARG(_num)    _num*4(ap)
  61. #endif __ASMMACRO_H__
  62.